import type { CascaderProps } from 'element-plus';

export module urls {
  //系统管理
  export const department = '/system/department';
  export const user = '/system/user';
  export const role = '/system/role';
  export const permission = '/system/permission';
  export const menu = '/system/role/menu';
  export const operation = '/system/operation';
  export const dictionary = '/system/dictionary';
  export const certification = '/person/certification';
  export const fileInfo = '/base/file/fileInfo';
  export const uploadOne = '/api/file/fileInfo/uploadOne';
  export const appendOne = '/api/file/fileInfo/appendOne';
  //流程管理
  export const deployment = '/flowable/deployment';
  export const processDefinition = '/flowable/processDefinition';
  export const processInstance = '/flowable/processInstance';
  export const taskInstance = '/flowable/task';
  export const leave = '/flowable/form/leave';
  export const asmePersonInfo = '/asmePerson/asmePersonInfo';
  //美标人员
  export const asmePersonCertification = '/asmePerson/asmePersonCertification';
  export const asmePersonTrainCourse = '/asmePerson/asmePersonTrainCourse';
  export const asmePersonTrainRecord = '/asmePerson/asmePersonTrainRecord';
  export const asmePersonTrainInstructor = '/asmePerson/asmePersonTrainInstructor';
  export const asmePersonExamContent = '/asmePerson/asmePersonExamContent';
  //人员管理
  export const ndePersonCertification = '/person/ndePersonCertification';
  export const ndePersonOperationRecord = '/person/ndePersonOperationRecord';
  //耗材管理
  export const consumableOverview = '/consumable/consumableOverview';
}

export module roles {
  const prefix = 'ROLE_';
  export const superAdmin = prefix + '超级管理员';
  export const admin = prefix + '管理员';
  export const loginUser = prefix + '登录用户';
  export const utOperater = prefix + '超声检测操作员';
  export const rtOperater = prefix + '射线检测操作员';
  export const mtOperater = prefix + '磁粉检测操作员';
  export const ptOperater = prefix + '渗透检测操作员';
  export const ltOperater = prefix + '泄漏检测操作员';
  export const etOperater = prefix + '涡流检测操作员';
  export const vtOperater = prefix + '目视检测操作员';
}

export module hqObjects {
  export const cascaderProps: CascaderProps = {
    expandTrigger: 'hover', //当鼠标放置时展开菜单
    checkStrictly: true, //可以选择各个节点的值
    label: 'label', //用来建立label显示的内容
    value: 'id', //用来定义下来值对应的字段
    emitPath: false //false只传递自节点的值，true传递全部链条的值
  };
}
